package com.example.demotool.bean;

import java.io.Serializable;

/**
 * @Data : 2019/7/11
 * @Des : Socket消息体
 */
public class SocketMsg<T> implements Serializable {
    private static final long serialVersionUID = -569315342607629651L;
    private String code;
    private String message;
    private T data;

    @Override
    public String toString() {
        return "{" +
                "code:" + code +
                ", message:'" + message + '\'' +
                ", data:" + data +
                '}';
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}

